package com.wisezone.permission.service.impl;

import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;

import com.wisezone.common.exception.WzDaoException;
import com.wisezone.common.exception.WzServiceException;
import com.wisezone.common.service.impl.BaseServiceImpl;
import com.wisezone.permission.bean.entity.WzGroupEntity;
import com.wisezone.permission.bean.entity.WzRoleEntity;
import com.wisezone.permission.bean.search.WzRoleSearch;
import com.wisezone.permission.bean.search.WzUserRoleSearch;
import com.wisezone.permission.dao.WzUserGroupDao;
import com.wisezone.permission.service.WzGroupService;
import com.wisezone.permission.service.WzUserGroupService;

/**
 * 
 *用户用户组; InnoDB free: 24576 kB
 * 
 * @author create by create date 2010-07-29 14:44:50 update date 2010-07-29
 *         14:44:50
 * 
 */
public class WzUserGroupServiceImpl extends BaseServiceImpl implements
		WzUserGroupService {

	/**
	  *
	  *
	  *
	  */
	private WzUserGroupDao wzUserGroupDao;
	
	private WzGroupService wzGroupService;
	


	/**
	 * 删除用户用户组
	 * 
	 * @param id
	 * @throws WzDaoException
	 */
	public void deleteByUserId(Long id) throws WzDaoException {

		if (id != null) {
			this.wzUserGroupDao.deleteByUserId(id);
		}
	}

	public void setWzUserGroupDao(WzUserGroupDao wzUserGroupDao) {
		this.setBaseDao(wzUserGroupDao);
		this.wzUserGroupDao = wzUserGroupDao;
	}

}